<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>{{message}}</p>
        <input type="text" :value="message" @input="message = $event.target.value">
        <p>请选择会的语言：</p>
        <input type="checkbox" v-model="checked" ><label>全选/取消</label>
        <input type="checkbox" :checked="checked"><label>javascript</label>
        <input type="checkbox" :checked="checked"><label>typescript</label>
        <input type="checkbox" :checked="checked"><label>html</label>
        <input type="checkbox" :checked="checked"><label>css</label>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.js"></script>
    <script>
        let app = new Vue({
            el:"#app",
            data:{
                message:"hello",
                checked:false
            },
            methods:{
                handleInput(e){
                    console.log(e.target.value);
                    this.message = e.target.value;
                }
            }
        });
    </script>
</body>
</html>